public class Human implements Do{
    //成员变量
    private String name;
    private String gender;
    private int age;
    //空参 + 实参
    public Human(){}
    public Human(String name,String gender,int age)
    {
        this.name = name;
        this.gender = gender;
        this.age = age;
    }
    //set + get 方法
    public void setname(String name){
        this.name = name;
    }
    public String getname(){
        return name;
    }
    public void setgender(String gender){
        this.gender = gender;
    }
    public String getgender(){
        return gender;
    } public void setage(int age){
        this.age = age;
    }
    public int getage(){
        return age;
    }
    //抽象重写
    @Override
    public void eating()
    {
        System.out.println("杂食性");
    }
    @Override
    public void living()
    {
        System.out.println("patience is key of life.");
    }
    //独属方法
    public void show()
    {
        System.out.println("姓名: " + name);
        System.out.println("性别: " + gender);
        System.out.println("年龄: " + age);
    }
}
